package com.sikaryofficial.backend.domain.mapping;

import com.sikaryofficial.backend.domain.dto.req.music.MusicLibraryReq;
import com.sikaryofficial.backend.domain.dto.resp.music.MusicGenreVO;
import com.sikaryofficial.backend.domain.dto.resp.music.MusicLibraryDTO;
import com.sikaryofficial.backend.domain.entity.Music;
import com.sikaryofficial.backend.domain.entity.MusicGenre;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : qinjinyuan
 * @desc : 活动映射接口
 * @date : 2023/11/03 9:19
 */
@Mapper
public interface MusicLibraryMapping {
    MusicLibraryMapping INSTANCE = Mappers.getMapper(MusicLibraryMapping.class);
    /**
     * 实体映射resp
     *
     * @param activity
     * @return
     */
    MusicLibraryDTO coverEntityToDTO(Music activity);
    /**
     * req映射实体
     * @param activity
     * @return
     */
    Music coverReqToEntity(MusicLibraryReq activity);

    List<MusicGenreVO> coverToGenreVO(List<MusicGenre> musicGenreList);

}
